package com.ruoyi.system.service.impl;

import java.util.Collections;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.OaSupplierPayableSummaryMapper;
import com.ruoyi.system.domain.OaSupplierPayableSummary;
import com.ruoyi.system.service.IOaSupplierPayableSummaryService;

/**
 * 供应商应付汇总Service业务层处理
 *
 * @author ruoyi
 * @date 2025-03-13
 */
@Service
public class OaSupplierPayableSummaryServiceImpl implements IOaSupplierPayableSummaryService
{
    @Autowired
    private OaSupplierPayableSummaryMapper oaSupplierPayableSummaryMapper;

    /**
     * 查询供应商应付汇总
     *
     * @param id 供应商应付汇总主键
     * @return 供应商应付汇总
     */
    @Override
    public OaSupplierPayableSummary selectOaSupplierPayableSummaryById(Long id)
    {
        return oaSupplierPayableSummaryMapper.selectOaSupplierPayableSummaryById(id);
    }

    /**
     * 查询供应商应付汇总列表
     *
     * @param oaSupplierPayableSummary 供应商应付汇总
     * @return 供应商应付汇总
     */
    @Override
    public List<OaSupplierPayableSummary> selectOaSupplierPayableSummaryList(OaSupplierPayableSummary oaSupplierPayableSummary)
    {
        return oaSupplierPayableSummaryMapper.selectOaSupplierPayableSummaryList(oaSupplierPayableSummary);
    }
    @Override
    public List<OaSupplierPayableSummary> selectOaSupplierPayableSummaryList1(OaSupplierPayableSummary oaSupplierPayableSummary)
    {
        return oaSupplierPayableSummaryMapper.selectOaSupplierPayableSummaryList1(oaSupplierPayableSummary);
    }
    /**
     * 新增供应商应付汇总
     *
     * @param oaSupplierPayableSummary 供应商应付汇总
     * @return 结果
     */
    @Override
    public int insertOaSupplierPayableSummary(OaSupplierPayableSummary oaSupplierPayableSummary)
    {
        return oaSupplierPayableSummaryMapper.insertOaSupplierPayableSummary(oaSupplierPayableSummary);
    }

    /**
     * 修改供应商应付汇总
     *
     * @param oaSupplierPayableSummary 供应商应付汇总
     * @return 结果
     */
    @Override
    public int updateOaSupplierPayableSummary(OaSupplierPayableSummary oaSupplierPayableSummary)
    {
        return oaSupplierPayableSummaryMapper.updateOaSupplierPayableSummary(oaSupplierPayableSummary);
    }

    /**
     * 批量删除供应商应付汇总
     *
     * @param ids 需要删除的供应商应付汇总主键
     * @return 结果
     */
    @Override
    public int deleteOaSupplierPayableSummaryByIds(Long[] ids)
    {
        return oaSupplierPayableSummaryMapper.deleteOaSupplierPayableSummaryByIds(ids);
    }

    /**
     * 删除供应商应付汇总信息
     *
     * @param id 供应商应付汇总主键
     * @return 结果
     */
    @Override
    public int deleteOaSupplierPayableSummaryById(Long id)
    {
        return oaSupplierPayableSummaryMapper.deleteOaSupplierPayableSummaryById(id);
    }

    @Override
    public List<OaSupplierPayableSummary> selectOaSupplierPayableSummaryByIdAndSupplier(OaSupplierPayableSummary oaSupplierPayableSummaryr) {
        return oaSupplierPayableSummaryMapper.selectOaSupplierPayableSummaryByIdAndSupplier(oaSupplierPayableSummaryr);
    }

    @Override
    public void delete(Integer id) {
        oaSupplierPayableSummaryMapper.delete(id);
    }
}
